#include<stdio.h>
void DrawTriangle (int n,char c)
{
    int i,i1;
    for(i=1;i<=n;i++)
    {
        for(i1=1;i1<=n-i;i1++)
        printf(" ");
        for(i1=1;i1<=i*2-1;i1++)
        printf("%c",c);
        printf("\n");
    }
}
int main(){
    DrawTriangle(5,'*');
    DrawTriangle(10,'#');
    return 0;
}